<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
    <script src="jquery.form.js"></script>
</head>
<body>
<form id="myForm" action="test.php" method="post">
    <input type="text" name="name">
    <input type="submit" id="test" value="提交">
    <div id="output1" style="display: none"></div>
</form>
<script>
    $(function () {

        $("#myForm").ajaxForm(function () {
            $('#output1').html('提交成功！').show();
        })
    })
</script>
</body>
</html>